<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0" />

    <script src="jquery-1.11.2.min.js"> </script>
    <script src="copy2clipboard.js"></script>
</head>
<body>
<button class="nav" onclick ="select_all_and_copy(document.getElementById('textCon1'))">
点击复制
</button>
<textarea id="textCon1" readonly="readonly" cols="40" rows="5"  style="    border: 0;
    color: white;">
http://baihuo.yukexx.com/DeZhong/user/invite.do?myInvitorId=2017071481
</textarea>

</body>
</html>